<div class='well'>
        <div>
        <ul style="margin-left: 0px;">
            <li style="font-weight: bold;list-style-type:none;">CorpID：<?php echo CHtml::textField('CorpID', 'CorpID', array('required' => 'required')) ?></li>
        </ul>
        <ul style="margin-left: 0px;margin-bottom: 0px;">
            <li style="font-weight: bold;list-style-type:none;">Secret：<?php echo CHtml::textField('Secret', 'Secret', array('required' => 'required')) ?></li>
        </ul>
         <label class="control-label">
             <?php 
               echo $control->getAjaxLink(array('name' => '如何获取CorpID以及Secret', 'id' => 'getHelp_CorpID'), array(
             'htmlOptions' => array()
              ));
             ?>
         </label>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function() {
        $("#selectAll").click(function() {
            if ($(this).attr("checked") == "checked") {
                $(":checkbox").attr("checked", true);
            } else {
                $(":checkbox").attr("checked", false);
            }
        });

    });
</script> 
<legend><h4><?php echo '应用列表'; ?></h4></legend>


<fieldset>
    <table class="table table-hover">
        <thead>
            <tr>
                <th>
                    <input type="checkbox"  id="selectAll"> 
                </th>
                <th><?php echo '应用名称'; ?></th>
                <th><?php echo '应用说明'; ?></th>
                <th><?php echo '操作'; ?></th>
            </tr> 
        </thead>
        <tbody>
            <?php
            ?>
                <tr>
                    <td><label class="checkbox">
                            <input type="checkbox" name="checkbox[]" value=""> 
                        </label></td>
                    <td><?php echo "微投票";?> </td>
                    <td><?php echo "投票相关事宜";?>  </td> 
                    <td>
                        <div class="row-fluid">                         
                            <?php
                            echo $control->getAjaxLink(array('name' => '修改', 'id' => ''), array(
                            ));
                            echo " | ";
                            ?>
                            <?php
                            echo $control->getAjaxLink(array('name' => '删除', 'id' => ''), array(
                            ));
                            ?> 
                        </div>                      
                    </td>
                </tr>
            <?php
            ?>
        </tbody>
    </table>

    <div class="row-fluid">
        <?php
        echo $control->getAjaxLink(array('name' => '新增应用', 'id' => 'addWeChatQyApp'), array(
            'eventId' => 0,
            'htmlOptions' => array(
                'class' => 'btn'),
        ));
        ?>
    </div>   
    <div><input type="hidden" name="curPageNo" value="1"></div>

    <div class="pagination">  
        <ul>  
            <li class="active">
                <a href="javascript:void()">前一页</a>    </li>  
            <li class="active">
                <a href="javascript:void()">1</a>    </li>  
            <li class="active">
                <a href="javascript:void()">后一页</a>    </li>  
        </ul>  
    </div>

